DateTimeEditors for WinRT
Selecting the Edit Mode

By default, the C1DateTimeSelector control shows both the date and time selectors, but you may also choose to show only the date selector or only the time selector. In this topic, you will learn how to change the editor mode in in XAML and in code.

 

In XAML

To select the edit mode, edit the XAML markup so it resembles one of the following samples:

Markup
Copy Code
<Xaml:C1DateTimeSelector EditMode="DateTime"/>

Markup
Copy Code
<Xaml:C1DateTimeSelector EditMode="Date"/>

Markup
Copy Code
<Xaml:C1DateTimeSelector EditMode="Time"/>

In Code

To select the edit mode, add the following code:

C#
Copy Code
c1DTS1.EditMode = C1.Xaml.C1DateTimePickerEditMode.Date;

Visual Basic
Copy Code
c1DTS1.EditMode = C1.Xaml.C1DateTimePickerEditMode.Date
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback